package com.example.springcloudAlibaba.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * The type Controller.
 *
 * @author hanj.cn @outlook.com
 * @date 2022 /1/9 14:48
 */
@RequestMapping("/payment")
@RestController
public class Controller {

    @Value("${server.port}")
    private String serverPort;

    /**
     * Nacos test string.
     *
     * @return the string
     */
    @GetMapping(value = "/nacos")
    public String nacosTest() {

        return "hello nacos\n" + serverPort + "\n" + new Date();
    }

}


